﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Admin.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	GetItems
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

  <link href="../../Content/Admin/control.css" rel="stylesheet" type="text/css" />
    <div>
    <table class="TableView" width="100%">
   <tr class="trHeader">
   <td>Mã Vật phẩm</td>
     <td style="width: 240px">Tên Vật phẩm</td>
       <td>Trạng thái khóa</td>
       <td>Số lượng</td>
       <td>Chức năng</td>
   </tr>
   <%if (ViewData["listitem"] != null)
     { %>
    <%foreach (VgoCardChange.Models.Objects.Items vp in (List<VgoCardChange.Models.Objects.Items>)ViewData["listitem"])
      { %>
      <tr class="trOdd">
      <td><%:vp.ItemID%></td>
      <td style="width: 240px"><%:vp.ItemName%></td>
      <td><%:vp.IsBind%></td>
      <td><%:vp.Quantity%></td>
      <td>
      <div class="Control" style="background-color:White; border-style:none;">
      <%:Html.ActionLink("Sửa", "EditItems", new { ItemID = vp.ItemID }, new { @class = "vedit" })%>
         <%:Html.ActionLink("Xóa", "DeleteItems", new { ItemID = vp.ItemID }, new { @class = "vdelete" })%>
         </div>
         </td>
      </tr>

    <%} %>
    <%} %>
     </table>
     <div class="Control">
     <%:Html.ActionLink("Tạo mới", "CreateItems", "Items", new { @class = "vadd" })%>
     <%:Html.ActionLink("Quay lại", "GetItems", "Items", new { @class = "vback" })%>
      <%:Html.ActionLink("Tìm kiếm", "SearchItem", "Items", new { @class = "vadd" })%>
     </div>
    </div>
</asp:Content>
